python/xs: Correct the indirection of the NULL xshandle() check
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Nov 2014 12:34:34 +0000 (12:34 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 4 Dec 2014 12:06:54 +0000 (12:06 +0000)
commit78b3afe2e5764b3ac61c46042c63619455483999
tree987cb08eb7e2dab46d92f5371d4ab07f8729121d
parent9592f35c49a912cd5e48c8b105d0ff575d54dfa2
python/xs: Correct the indirection of the NULL xshandle() check

The code now now matches its comment, and will actually catch the case of a
bad xs handle.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Coverity-ID: 1055948
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Xen Coverity Team <coverity@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/python/xen/lowlevel/xs/xs.c